package com.example.blew.omp.system.model.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@TableName("blew_log")
@Schema(name = "blew_log对象", title = "日志表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TimeLog {
    private static final long serialVersionUID=1L;

    /**
     * Id
     */
    @Schema(description = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 创建人标识
     */
    @Schema(description = "创建人标识")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建人姓名
     */
    @Schema(description = "创建人姓名")
    @TableField(value = "create_by_name", fill = FieldFill.INSERT)
    private String createByName;

    /**
     * 最后修改时间
     */
    @Schema(description = "最后修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 最后修改人标识
     */
    @Schema(description = "最后修改人标识")
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    /**
     * 最后修改人姓名
     */
    @Schema(description = "最后修改人姓名")
    @TableField(value = "update_by_name", fill = FieldFill.UPDATE)
    private String updateByName;

    /**
     * 删除标记（0：正常，1：删除）
     */
    @Schema(description = "删除标记（0：正常，1：删除）")
    @TableField("del_flag")
    @TableLogic
    private Integer delFlag;

    /**
     * 方法
     */
    @Schema(description = "方法")
    @TableField("method")
    private String method;

    /**
     * 消耗时间
     */
    @Schema(description = "消耗时间")
    @TableField("cost_time")
    private Long costTime;

    /**
     * 方法名称
     */
    @Schema(description = "方法名称")
    @TableField("method_name")
    private String methodName;

    /**
     * 参数
     */
    @Schema(description = "参数")
    @TableField("business_data")
    private String businessData;

}
